//
//  MVContents.m
//  __PRODUCTNAME__
//
//  Created by QC.L on 16/08/15
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "MVContents.h"
#import "MVTableList.h"

@implementation MVContents

+ (NSDictionary *)objectClassInArray{
    return @{@"list" : [MVTableList class]};
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"list"]) {
        NSMutableArray<MVTableList *> *tableListArray = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            MVTableList *tableList = [MVTableList modelWithDic:dic];
            [tableListArray addObject:tableList];
        }
        _list = tableListArray;
    }
}

@end
